/*
 * MainMenu.fx
 *
 * Created on 01.12.2009, 16:48:48
 */

package org.zhgames.zhciv.client.gui.scenes;

import javafx.scene.*;
import javafx.scene.paint.*;
import javafx.scene.shape.*;
import javafx.scene.layout.*;
import javafx.scene.text.*;
import javafx.scene.image.ImageView;
import javafx.scene.image.Image;
import javafx.stage.Alert;
import javafx.geometry.Rectangle2D;

/**
 * @author Vitaliy_Turilkin
 */

public class MainMenu extends CustomNode {
    public var width:Number;
    public var height:Number;

    override function create():Node {
        return Group {
            content: {[
                HBox{
                    spacing: 3
                    content:[
                        imageView,
                        buttons,
                        minimap
                    ]
                }
            ]
            }
        };
    }
//left image with hero
    def imageView = ImageView {
        fitWidth:100
        fitHeight:100
        preserveRatio:true
        image: Image {
            url: "{__DIR__}red_alert.jpg"
        }
    }
//buttons
    def buttons = HBox{};
//minimap
    def minimap = HBox{};
}


